package com.xm9m.web.service.entity.security;

import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

import java.util.Collection;

/**
 * Created by 123 on 2015/12/11.
 */
public class SecurityCustomer extends  User {

    private static final long serialVersionUID = 1947303824209898176L;
    private  long customerId;
    private String nick;
    private String telphone;

    public String getTelphone() {
        return telphone;
    }

    public void setTelphone(String telphone) {
        this.telphone = telphone;
    }

    public SecurityCustomer(String username, String password,
                            Collection<? extends GrantedAuthority> authorities) {
        super(username,password,authorities);
    }

    public String getNick() {
        return nick;
    }

    public void setNick(String nick) {
        this.nick = nick;
    }

    public long getCustomerId() {
        return customerId;
    }

    public void setCustomerId(long customerId) {
        this.customerId = customerId;
    }



}
